package com.h2n.framework.dao;

import com.h2n.framework.dto.ModuleDTO;

import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: NhatNV
 * Date: Sep 23, 2009
 * Time: 10:53:30 PM
 * To change this template use File | Settings | File Templates.
 */
public interface IModuleDAO {
  public long insert(ModuleDTO _moduleDto) throws Exception;
  public void update(ModuleDTO _moduleDto) throws Exception;
  public void delete(int _id) throws Exception;
  public ModuleDTO getInfo(int _id) throws Exception;
  public List<ModuleDTO> getAll() throws Exception;
  public List<ModuleDTO> getChildByMemberAndParentId(int _memberId,int _parentId) throws Exception;
  public List<ModuleDTO> getParentByMemberId(int _memberId) throws Exception;
}
